package com.xu.mall.base.select.model;

import java.io.Serializable;
import java.util.List;

import com.xu.mall.base.category.model.ICategory;
import com.xu.mall.base.common.Constants;
import com.xu.mall.base.tree.entity.BaseTreeEntity;

/**
 * 选择项类别
 * 
 * @version Revision History
 * 
 *          <pre>
 * Author     Version       Date        Changes
 * lunan.xu   1.0           2012-10-27  Created
 * </pre>
 * 
 * @since 1.
 */
public class SelectItemType extends BaseTreeEntity implements ICategory, Serializable {
	private static final long serialVersionUID = 929126760518553920L;

	private List<SelectItem> selectItems;

	@Override
	public void setCode(String code) {
		this.code = code.startsWith(Constants.CodePrefix.SelectItemType) ? code : Constants.CodePrefix.SelectItemType
				+ code;
	}

	public List<SelectItem> getSelectItems() {
		return selectItems;
	}

	public void setSelectItems(List<SelectItem> selectItems) {
		this.selectItems = selectItems;
	}

}
